package edu.whu.webgis.mapper;



import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.whu.webgis.entity.Posting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;



@Mapper
public interface PostingMapper extends BaseMapper<Posting> {
    @Select("update posting set likes = likes + 1 where id = #{pid}")
    void plusLike(Integer pid);



}
